package com.ly.mpayment.persist.entity;

// default package

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;


/**
 * MatchingStrategy entity. @author MyEclipse Persistence Tools
 */
public class MatchingStrategyCopy implements java.io.Serializable {


    // Fields

     private String matchinguuid;
     private User downUser;
     private String remark;
     private User upUser;

     private String provinceuuid;
     private String operatoruid;
     private String cityName;
     private String busuuid;
     private String status;

//     private List<IncludesProduct> includesProducts;


    // Constructors

    /** default constructor */
    public MatchingStrategyCopy() {
    }


    public MatchingStrategyCopy(String matchinguuid, User downUser, String remark, User upUser) {
        this.matchinguuid = matchinguuid;
        this.downUser = downUser;
        this.remark = remark;
        this.upUser = upUser;
    }

    // Property accessors


    public String getMatchinguuid() {
        return this.matchinguuid;
    }

    public void setMatchinguuid(String matchinguuid) {
        this.matchinguuid = matchinguuid;
    }


    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="downuuid")
    public User getDownUser() {
        return downUser;
    }

    public void setDownUser(User downUser) {
        this.downUser = downUser;
    }


    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="upuuid")
    public User getUpUser() {
        return upUser;
    }

    public void setUpUser(User upUser) {
        this.upUser = upUser;
    }
//    @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="matchingStrategy")
//
//    public List<IncludesProduct> getIncludesProducts() {
//        return this.includesProducts;
//    }
//
//    public void setIncludesProducts(List<IncludesProduct> includesProducts) {
//        this.includesProducts = includesProducts;
//    }


    @Column(name="provinceuuid")
    public String getProvinceuuid() {
        return provinceuuid;
    }

    public void setProvinceuuid(String provinceuuid) {
        this.provinceuuid = provinceuuid;
    }

    @Column(name="operatoruid")
    public String getOperatoruid() {
        return operatoruid;
    }

    public void setOperatoruid(String operatoruid) {
        this.operatoruid = operatoruid;
    }

    @Column(name="city_name")
    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Column(name="busuuid")
    public String getBusuuid() {
        return busuuid;
    }

    public void setBusuuid(String busuuid) {
        this.busuuid = busuuid;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
